<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>单选框</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script src="../../js/page.js"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"></script>

</head>

<body>
    <section class="container">
        <h3>
            单选框
        </h3>
        <p>
            单选框用于让用户从一系列预设置的选项中进行选择，只能选一个。
        </p>
        <!-- item -->
        <div class="card my-4">
            <div class="card-header">
                <h5 class="text-primary">默认</h5>
            </div>
            <div class="card-body">
                <label class="form-check-label">
                    <input type="radio" name="radio" class="form-check-input" value="">未选
                </label>
                <label class="form-check-label">
                    <input type="radio" name="radio"  class="form-check-input" checked>选中
                </label>
                <label class="form-check-label">
                    <input type="radio" disabled name="radio"  class="form-check-input" value="">禁用
                </label>
            </div>
        </div>
        </div>
        <!-- item end-->
        <!-- item -->
        <div class="card my-4">
            <div class="card-header">
                <h5 class="text-primary">竖排</h5>
            </div>
            <div class="card-body">
                <form>
                    <div class="form-check">
                        <label class="form-check-label">
                            <input type="radio" name="radio"  class="form-check-input" value="">Option 1
                        </label>
                    </div>
                    <div class="form-check">
                        <label class="form-check-label">
                            <input type="radio" name="radio"  class="form-check-input" checked>Option 2
                        </label>
                    </div>
                    <div class="form-check disabled">
                        <label class="form-check-label">
                            <input type="radio" name="radio"  class="form-check-input" value="" disabled>Option 3
                        </label>
                    </div>
                </form>
            </div>
            <!-- item -->
            <div class="card my-4">
                <div class="card-header">
                    <h5 class="text-primary">横排</h5>
                </div>
                <div class="card-body">
                    <form>
                        <div class="form-check form-check-inline">
                            <label class="form-check-label">
                                <input type="radio" name="radio"  class="form-check-input" value="">Option 1
                            </label>
                        </div>
                        <div class="form-check form-check-inline">
                            <label class="form-check-label">
                                <input type="radio" name="radio"  class="form-check-input" checked value="">Option 2
                            </label>
                        </div>
                        <div class="form-check form-check-inline disabled">
                            <label class="form-check-label">
                                <input type="radio" name="radio"  class="form-check-input" value="" disabled>Option 3
                            </label>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!-- item end-->


    </section>
</body>

</html>